import "@babel/polyfill";

new Promise((resolve) => {
    resolve(100);
}).then(res => {
    console.log(res, 'promise');
});


class Point {
    constructor(x, y) {
        this.x = x;
        this.y = y;
    }

    toString() {
        return '(' + this.x + ', ' + this.y + ')';
    }
}

const p = new Point(1, 2);
console.log(p.toString(), 'class');

console.log('1234'.includes('1'), 'includes');

function* gen() {
    yield 100;
}

console.log(gen().next(), 'generate');